home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_HDR_particle.psh < prev    next >
Encoding:
Text File  |  2007-04-28  |  975 b   |  43 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc ..\..\WorkDir\Shaders\ps\ps2_0_HDR_particle.psh
  5. //    ps2_0_HDR_particle.cg
  6. //
  7. //
  8. // Parameters:
  9. //
  10. //   float4 $AmbientEmissive;
  11. //   float4 $Diffuse;
  12. //   float4 $LightSrcIntencity;
  13. //   sampler2D $baseMap;
  14. //
  15. //
  16. // Registers:
  17. //
  18. //   Name               Reg   Size
  19. //   ------------------ ----- ----
  20. //   $AmbientEmissive   c0       1
  21. //   $Diffuse           c1       1
  22. //   $LightSrcIntencity c2       1
  23. //   $baseMap           s0       1
  24. //
  25.  
  26.     ps_2_0
  27.     def c3, 0.0199999996, 65504, 0, 0
  28.     dcl t0.xy
  29.     dcl t4.x
  30.     dcl_2d s0
  31.     texld r1, t0, s0
  32.     mul r0.xyz, t4.x, c0
  33.     mov r0.w, c3.x
  34.     mad r2.xyz, r0, c2, r0.w
  35.     mov r0.xyz, c2
  36.     mul r0.xyz, r0, c1
  37.     mad r0.xyz, r0, t4.x, r2
  38.     mul r1.xyz, r1, r0
  39.     min r0, r1, c3.y
  40.     mov oC0, r0
  41.  
  42. // approximately 10 instruction slots used (1 texture, 9 arithmetic)
  43.